package com.ywu.admin.user.spi.spi;

import com.ywu.admin.user.spi.dto.UserDto;
import com.ywu.admin.user.spi.entity.UserEntity;
import com.ywu.common.result.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(value = "YWU-ADMIN-USER")
public interface UserSpi {
    @PostMapping("/ywu/admin/user/query.user.account.info")
    CommonResult<UserEntity> queryUserByUserAccount(@RequestBody UserDto userDto);

    @PostMapping("/ywu/admin/user/query.user.by.id.batch.spi")
    CommonResult<List<UserEntity>> queryUserByUserIdBatch(@RequestBody List<Integer> ids);
}
